<body>
    <div id="phoneGallery">
    
    	<div class="galleryRight"></div>
		
        <div class="width960c compares">
     		<div class="phoneAddDevice">
                <a href="#" class="buttonBlue Add floatRight">Add Another Device</a>
                
                <span class="clear"></span>
                </div>
                
                <div class="marg10">
                    <div class="phoneHolder alignCenter floatLeft">
                    <img src="<?php echo base_url('skin/images/mobilePhone.png'); ?>" alt=""/></span>
                    <a href="#" class="block linkColor">Remove</a>
                    <span class="clear"></span>
                    </div>
                    <div class="phoneHolder alignCenter floatLeft">
                    <img src="<?php echo base_url('skin/images/mobilePhone.png'); ?>" alt=""/></span>
                    <a href="#" class="block linkColor">Remove</a>
                    <span class="clear"></span>
                    </div>
                     <span class="clear"></span>
                </div> 
                   
               <div class="compBox compA">
                    <div class="floatLeft box1"><p>Model</p>
                    </div>
	            <?php //print_r($comdev); ?>
		    <?php $i = 1; ?>
		    <?php foreach($comdev as $cd){ ?>
	            <?php //print_r($cd); ?>
                    <div class="floatLeft width350 bordRight padding50L">
                    		<span class="floatLeft holder"><img class="compare-img compare-img<?php echo $i; ?>" src="<?php echo $cd["imageurl"] ?>" alt=""/></span>
                    		<span class="floatLeft">
                            	<p><?php echo $cd["manufacturer"] ?></p>
                                <h4 id="<?php echo "prodname".$i; ?>"><?php echo $cd["name"] ?></h4>
                                
                                
                                <a href="<?php $sku=$cd["sku"]; echo site_url("specification/".$sku) ?>" class="marg10 compare-a">More Info</a>
                            	<a href="#" class="marg10 compare-a compare-sku<?php echo $i; ?>" id = "<?php echo $cd["sku"] ?>">Remove</a>
                            </span>
                    		<span class="clear"></span>
                    </div>
		    <?php $i++; ?> 
		    <?php   } ?>

                    <div id="add-another-device" class="floatLeft  width350 padding20L">
                    	<a href="http://goplay.globe.com.ph/maitaidevportal/index.php/gallery" class="buttonBlue Add marg40">Add Another Device</a>
                    
                    </div>  
                    
                    <div class="clear"></div>
               </div>
               
               
                <div class="compBox compB">
                    <div class="floatLeft box1"><p>Body</p>
                    </div>
		    <?php foreach($comdev as $cd){ ?>
                    <div class="floatLeft width380 bordRight padding20L">
                        	
                           <p><b class="marg10Right"> Dimensions</b> <?php echo $cd["Size"]["Dimension"]; ?></p>
                            <p><b class="marg10Right">Weight</b><?php echo number_format($cd["Size"]["Weight"],2)." g"; ?></p>
                            <p><b class="marg10Right">Qwerty</b><?php echo substr($cd["Media"]["Touch_Screen__Qwerty"],-2); ?></p>  
                    </div>
		   <?php   } ?> 
                   <div class="floatLeft width350 padding20L">
                    		
                            
                    </div>
                    <div class="clear"></div>
               </div>
               
               
               <div class="compBox compC">
                    <div class="floatLeft box1"><p>Display</p>
                    </div>
		    <?php foreach($comdev as $cd){ ?>
                    <div class="floatLeft width380 bordRight padding20L">
                    		<p class="marg40"><b class="marg10Right">Size</b><?php echo $cd["Display"]["Size"]; ?></p>
                    
                    </div>
		    <?php   } ?> 
                    <div class="floatLeft  width350 padding20L">
                    
                    
                    </div>  
                    
                    <div class="clear"></div>
               </div>
               
               <div class="compBox compD">
                    <div class="floatLeft box1"><p>Connectivity</p>
                    </div>
		    <?php foreach($comdev as $cd){ ?>
                    <div class="floatLeft width380 bordRight padding20L">
                    		<p class="marg40"><?php echo $cd["Features"]["Connectivity"]; ?></p>
                    </div>
		    <?php   } ?> 
                    <div class="floatLeft  width350 padding20L">
                    
                    
                    </div>  
                    
                    <div class="clear"></div>
               </div>
               
               <div class="compBox compE">
                    <div class="floatLeft box1"><p>Multimedia</p>
                    </div>
		    <?php foreach($comdev as $cd){ ?>
                    <div class="floatLeft width380 bordRight padding20L">
                    		
                          		<span class="block"><b class="marg10Right">Camera</b><?php echo $cd["Media"]["Camera"]; ?></span>	
                                 <span class="block"><b class="marg10Right">Secondary camera</b><?php echo $cd["Media"]["Secondary_Camera"]; ?></span>	
                                 <span class="block"><b class="marg10Right">Video/ Video calling/ Radio</b><?php echo str_replace("_" , " / " , $cd["Media"]["Video__Video_Calling__Radio"]); ?></span>	
                                <span class="block"><b class="marg10Right">Loudspeaker/ 3.5mm jack</b><?php echo str_replace("_" , " / " , $cd["Media"]["Loudspeaker__35mm_jack"]); ?></span>	
                                <span class="block"><b class="marg10Right">Flash/ Media  player/ Games</b><?php echo str_replace("_" , " / " , $cd["Media"]["Flash__Media_Player__Games"]); ?></span>			
                            <div class="clear"></div>
                            
                    </div>
		    <?php   } ?> 
                    <div class="floatLeft  width350 padding20L">
                    
                    
                    </div>  
                    
                    <div class="clear"></div>
               </div>
       
       			 <div class="compBox compF">
                    <div class="floatLeft box1"><p>Software</p>
                    </div>
		    <?php foreach($comdev as $cd){ ?>
                    <div class="floatLeft width380 bordRight padding20L">
                    		<p class="marg40"><b class="marg10Right">OS</b><?php echo $cd["Features"]["OS"]; ?></p>
                    
                    </div>
		    <?php   } ?> 
                    <div class="floatLeft  width350 padding20L">
                    
                    
                    </div>  
                    
                    <div class="clear"></div>
               </div>
               
                <div class="compBox compG">
                    <div class="floatLeft box1"><p>Price</p>
                    </div>
		    <?php $i = 1; ?>
		    <?php foreach($comdev as $cd){ ?>
                    <div class="floatLeft width380 bordRight padding20L">
				<?php $price = number_format($cd["price"],2); ?>
                    		<p><b class="marg160Right"><?php echo (($price=="0.00") ? "<strong id='price$i'>FREE</strong>" : "<strong id='price$i'>Php&nbsp;$price</strong>"); ?></b></p>
                    		<a href="<?php echo base_url(); ?>index.php/promo" class="buttonBlue Add get-sku<?php echo $i; ?>">Get this device now</a>
                    </div>
		    <?php $i++; ?> 
		    <?php   } ?> 
                    <div class="floatLeft  width350 padding20L">
                    
                    
                    </div>  
                    
                    <div class="clear"></div>
               </div>
       </div>
        
        
        
	</div>
</body>
